import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取产品指定时间范围期初期末时间
  queryProductTime: (query) => api.get(`${config.interfaces.type3}portfolio/getBeginEndTime/`, query),
  // 获取资产大类数据
  queryAssetsData: (query) => api.post(`${config.interfaces.type3}assetallocation/holdStatistics/`, query),
  // 获取占比变动趋势图数据
  queryTendencyChartData: (query) => api.post(`${config.interfaces.type3}assetallocation/scaleChangeTrend/`, query),
  // 获取大类资产维度数据
  queryDimensionData: (query) => api.post(`${config.interfaces.type3}assetallocation/majorAssetDimStat/`, query),
  // 获取持仓明细数据
  queryMarkeData: (query) => api.post(`${config.interfaces.type3}assetallocation/topNHoldDetail/`, query),
  // 获取产品分配
  queryDistributionData: (query) => api.post(`${config.interfaces.type3}assetallocation/assetHoldProportion/`, query),
};
